/* Style des guides de catcup.fr/guide/ (copié dans public/guide/guide.css par guides/build.mjs,
   avec les animations de la mascotte ajoutées à la fin). Mêmes couleurs que l'éditeur (src/index.css). */
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(/guide/polices/poppins-500.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(/guide/polices/poppins-700.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 800; font-display: swap; src: url(/guide/polices/poppins-800.woff2) format('woff2'); }

:root {
  --bg: #0f0f12;
  --panel: #16161b;
  --panel-raised: #1e1e25;
  --border: #2a2a33;
  --text: #ececf1;
  --text-muted: #a3a3b2;
  --accent: #2ee6d6;
  --accent-ink: #04201d;
  --support: #ff7a9c;
  --tipeee: #d9475a;
  --warning: #ffb547;
  --video: #2a5f86;
  --video-edge: #4aa3e0;
  --image: #56408f;
  --image-edge: #9a7bf2;
  --audio: #1f5b48;
  --audio-edge: #3fcf98;
  --title: Poppins, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(700px 500px at 8% -5%, rgba(46, 230, 214, .10), transparent 70%),
    radial-gradient(800px 600px at 105% 20%, rgba(154, 123, 242, .10), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #7ff3e9; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(15, 15, 18, .78); border-bottom: 1px solid rgba(42, 42, 51, .7); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 21px/1 var(--title); letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.top nav { display: flex; align-items: center; gap: 18px; }
.top nav a:not(.btn) { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:not(.btn):hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font: 700 15px/1 var(--title); padding: 11px 16px; border-radius: 999px;
  box-shadow: 0 6px 24px rgba(46, 230, 214, .25); transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { color: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(46, 230, 214, .35); }
.btn.big { font-size: 18px; padding: 16px 26px; }
.btn.tip { background: var(--tipeee); color: #fff; box-shadow: 0 6px 24px rgba(217, 71, 90, .3); }
.btn.tip:hover { color: #fff; box-shadow: 0 10px 30px rgba(217, 71, 90, .45); }

/* Fil d'Ariane */
.crumbs { margin-top: 22px; font-size: 14px; color: var(--text-muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: '›'; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* Haut de page : texte à gauche, scène animée à droite */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 34px 0 48px; }
.kicker { display: inline-block; margin: 0 0 14px; font: 700 13px/1 var(--title); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 7px 12px 6px; border-radius: 999px; }
h1, h2, h3 { font-family: var(--title); letter-spacing: -.015em; line-height: 1.15; }
h1 { font-size: clamp(32px, 5.2vw, 54px); font-weight: 800; margin: 0 0 16px; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), #9a7bf2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: #c9c9d6; margin: 0 0 26px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cta .note { font-size: 14px; color: var(--text-muted); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.checks li { font: 600 14px/1 var(--title); padding: 8px 12px 7px; border-radius: 999px; background: var(--panel-raised); border: 1px solid var(--border); }
.checks li::before { content: '✓ '; color: var(--accent); }

/* La scène : la mascotte projette l'image sur un écran, avec une timeline dessous */
.scene { position: relative; aspect-ratio: 1 / .82; min-height: 300px; }
.scene .mascot { position: absolute; left: -4%; bottom: 13%; width: 52%; z-index: 2; }
.scene .mascot svg { width: 100%; height: auto; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .5)); }
.scene .screen {
  position: absolute; right: 0; top: 2%; width: 62%; aspect-ratio: 16 / 10; z-index: 1;
  border-radius: 16px; overflow: hidden; background: #000;
  border: 2px solid #34343f; box-shadow: 0 0 0 6px rgba(46, 230, 214, .06), 0 30px 60px rgba(0, 0, 0, .5), 0 0 80px rgba(46, 230, 214, .18);
}
.scene .screen.portrait { width: 40%; right: 9%; top: 0; aspect-ratio: 9 / 16; border-radius: 22px; }
.scene .tl {
  position: absolute; left: 6%; right: 0; bottom: 0; height: 15%; z-index: 3;
  background: rgba(22, 22, 27, .95); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.scene .tl i { position: absolute; height: 26%; border-radius: 4px; border: 1.5px solid; }
.scene .tl i:nth-child(1) { left: 2%; width: 30%; top: 12%; background: var(--video); border-color: var(--video-edge); }
.scene .tl i:nth-child(2) { left: 33%; width: 22%; top: 12%; background: var(--video); border-color: var(--video-edge); }
.scene .tl i:nth-child(3) { left: 56%; width: 41%; top: 12%; background: var(--video); border-color: var(--video-edge); }
.scene .tl i:nth-child(4) { left: 14%; width: 26%; top: 43%; background: var(--image); border-color: var(--image-edge); }
.scene .tl i:nth-child(5) { left: 62%; width: 18%; top: 43%; background: var(--image); border-color: var(--image-edge); }
.scene .tl i:nth-child(6) { left: 2%; width: 95%; top: 72%; height: 18%; background: var(--audio); border-color: var(--audio-edge); }
.scene .tl b { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 10px #fff; animation: tl-play 6s linear infinite; }
@keyframes tl-play { from { left: 2%; } to { left: 97%; } }

/* Contenus des écrans (chaque guide a le sien) */
.sky { position: absolute; inset: 0; background: linear-gradient(180deg, #ff9a6b 0%, #ff6f91 45%, #6a4c93 100%); animation: sky-pan 6s ease-in-out infinite alternate; }
.sky::before { content: ''; position: absolute; left: 58%; top: 22%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff6c9, #ffd166 60%, rgba(255, 209, 102, 0) 70%); animation: sun 6s ease-in-out infinite alternate; }
.sky::after { content: ''; position: absolute; inset: auto 0 0 0; height: 34%; background: linear-gradient(180deg, #2d1b4e, #120a24); clip-path: polygon(0 40%, 18% 10%, 34% 45%, 52% 5%, 70% 50%, 86% 20%, 100% 42%, 100% 100%, 0 100%); }
@keyframes sky-pan { from { filter: hue-rotate(0); } to { filter: hue-rotate(-25deg) saturate(1.2); } }
@keyframes sun { from { transform: translateY(14%); } to { transform: translateY(-6%); } }
.pop-title { position: absolute; left: 0; right: 0; top: 18%; text-align: center; font: 800 clamp(18px, 3.3vw, 34px)/1 var(--title); color: #fff; text-shadow: 0 3px 0 #000, 0 0 18px rgba(0, 0, 0, .4); }
.pop-title span { display: inline-block; animation: letter-pop 3s cubic-bezier(.3, 1.8, .5, 1) infinite both; }
@keyframes letter-pop { 0% { transform: translateY(40%) scale(.2); opacity: 0; } 12%, 80% { transform: none; opacity: 1; } 92%, 100% { transform: translateY(-20%) scale(.9); opacity: 0; } }
.sticker { position: absolute; font-size: clamp(22px, 3.4vw, 36px); animation: wobble 1.6s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-10deg) scale(1); } 50% { transform: rotate(10deg) scale(1.12); } }

.checklist { position: absolute; inset: 0; background: linear-gradient(160deg, #16161b, #1e1e25); display: grid; align-content: center; gap: 6%; padding: 0 9%; }
.checklist p { margin: 0; font: 700 clamp(13px, 2vw, 20px)/1.2 var(--title); display: flex; align-items: center; gap: 10px; opacity: 0; animation: check-in 6s ease-out infinite; }
.checklist p::before { content: '✓'; display: grid; place-items: center; flex: none; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .9em; }
.checklist p:nth-child(2) { animation-delay: .5s; } .checklist p:nth-child(3) { animation-delay: 1s; } .checklist p:nth-child(4) { animation-delay: 1.5s; }
@keyframes check-in { 0% { opacity: 0; transform: translateX(-12px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.phone { position: absolute; inset: 0; background: linear-gradient(200deg, #3a1c71 0%, #d76d77 55%, #ffaf7b 100%); }
.phone .caption { position: absolute; left: 7%; right: 20%; top: 36%; text-align: center; font: 800 clamp(12px, 1.8vw, 19px)/1.2 var(--title); color: #fff; }
.phone .caption span { background: #fff; color: #000; padding: .1em .3em; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; animation: caption-swap 4s steps(1) infinite; }
.phone .caption span + span { position: absolute; left: 0; right: 0; top: 0; opacity: 0; animation-delay: 2s; background: var(--accent); }
@keyframes caption-swap { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.phone .side { position: absolute; right: 6%; bottom: 18%; display: grid; gap: 14px; }
.phone .side i { width: clamp(16px, 2.4vw, 24px); aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.phone .side i:first-child { background: #ff4d79; animation: like 1.2s ease-in-out infinite; }
@keyframes like { 50% { transform: scale(1.3); } }
.phone .bar { position: absolute; left: 6%; bottom: 7%; width: 55%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .8); }
.phone .bar + .bar { bottom: 11%; width: 35%; }

.text-demo { position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, #2a5f86, #0f0f12 70%); display: grid; place-items: center; }
.text-demo > div { position: absolute; font: 800 clamp(18px, 3.4vw, 36px)/1 var(--title); opacity: 0; animation: demo-cycle 12.5s linear infinite; text-align: center; }
.text-demo > div:nth-child(2) { animation-delay: 2.5s; } .text-demo > div:nth-child(3) { animation-delay: 5s; }
.text-demo > div:nth-child(4) { animation-delay: 7.5s; } .text-demo > div:nth-child(5) { animation-delay: 10s; }
@keyframes demo-cycle { 0%, 19.9% { opacity: 1; } 20%, 100% { opacity: 0; } }
.text-demo .t-type span { animation: type 2.5s steps(1) infinite; opacity: 0; }
@keyframes type { 0% { opacity: 0; } 4%, 100% { opacity: 1; } }
.text-demo .t-bounce span { display: inline-block; animation: bounce .8s ease-in-out infinite alternate; color: #ffd166; }
@keyframes bounce { from { transform: translateY(18%); } to { transform: translateY(-28%); } }
.text-demo .t-neon { color: #fff; text-shadow: 0 0 6px #ff4dd8, 0 0 16px #ff4dd8, 0 0 34px #ff4dd8; animation: neon 2.5s ease-in-out infinite; }
@keyframes neon { 0%, 18%, 22%, 100% { opacity: 1; } 20% { opacity: .35; } }
.text-demo .t-glitch { color: #fff; text-shadow: 3px 0 #ff2e63, -3px 0 #2ee6d6; animation: glitch .3s steps(2) infinite; }
@keyframes glitch { 0% { transform: translate(0); } 50% { transform: translate(2px, -1px) skewX(-6deg); } 100% { transform: translate(-2px, 1px); } }
.text-demo .t-wave span { display: inline-block; color: var(--accent); animation: wave 1.2s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-30%); } }

.subs { position: absolute; inset: 0; background: linear-gradient(180deg, #1f5b48, #0f0f12); }
.subs .wave { position: absolute; left: 8%; right: 8%; top: 22%; height: 26%; display: flex; align-items: center; gap: 3%; }
.subs .wave i { flex: 1; border-radius: 3px; background: var(--audio-edge); animation: eq 1s ease-in-out infinite alternate; }
@keyframes eq { from { height: 18%; } to { height: 100%; } }
.subs .line { position: absolute; left: 6%; right: 6%; bottom: 16%; text-align: center; font: 800 clamp(14px, 2.4vw, 24px)/1.2 var(--title); color: #fff; text-shadow: 0 2px 0 #000, 0 0 10px #000; }
.subs .line span { animation: word 4s steps(1) infinite; }
@keyframes word { 0% { color: #fff; } 1%, 22% { color: #ffd166; } 23%, 100% { color: #fff; } }

/* Le texte des guides */
.content { width: min(760px, 100% - 32px); margin: 0 auto; }
.content h2 { font-size: clamp(25px, 3.4vw, 32px); font-weight: 800; margin: 56px 0 14px; }
.content h3 { font-size: 20px; font-weight: 700; margin: 30px 0 8px; }
.content p, .content li { color: #d6d6e0; }
.content strong { color: #fff; }
.content ul, .content ol { padding-left: 1.3em; }
.content li { margin: 6px 0; }
.content li::marker { color: var(--accent); font-weight: 700; }
.ui { font: 600 .92em/1 var(--title); background: var(--panel-raised); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px 1px; white-space: nowrap; color: #fff; }
kbd { font: 600 .85em ui-monospace, Menlo, monospace; background: var(--panel-raised); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding: 16px 18px 16px 64px; margin: 12px 0; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; }
.steps > li::before { content: counter(step); position: absolute; left: 16px; top: 15px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 800 16px/1 var(--title); }
.steps > li strong:first-child { display: block; font-family: var(--title); font-size: 17px; margin-bottom: 2px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 18px 0; padding: 0; list-style: none; }
.cards li { margin: 0; padding: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; }
.cards li b { display: block; font-family: var(--title); color: #fff; margin-bottom: 4px; }
.cards li span { font-size: 15px; color: var(--text-muted); line-height: 1.5; display: block; }

.compare { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; margin: 18px 0; font-size: 15px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.compare th, .compare td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--panel-raised); font-family: var(--title); }
.compare tbody th { font-weight: 600; color: #fff; background: var(--panel); }
.compare thead th:first-child { width: 30%; }
.compare tr:last-child > * { border-bottom: 0; }
.compare .yes { color: var(--accent); font-weight: 700; }
.compare .no { color: var(--warning); font-weight: 700; }
.table-scroll { overflow-x: auto; }

.callout { margin: 22px 0; padding: 16px 18px; border-radius: 14px; background: rgba(46, 230, 214, .07); border: 1px solid rgba(46, 230, 214, .3); }
.callout.warn { background: rgba(255, 181, 71, .07); border-color: rgba(255, 181, 71, .35); }
.callout p { margin: 0; }

.shot { margin: 24px 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.shot.phone-shot img { width: min(320px, 80%); margin: 0 auto; border-radius: 26px; }
.shot figcaption { text-align: center; font-size: 14px; color: var(--text-muted); margin-top: 10px; }

.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; margin: 10px 0; padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font: 700 16px/1.35 var(--title); color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > *:not(summary) { margin: 0 0 14px; }

/* Encadré de soutien : le chat fait un cœur */
.support { width: min(900px, 100% - 32px); margin: 70px auto 0; display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center;
  padding: 26px; border-radius: 22px; background: linear-gradient(135deg, rgba(255, 122, 156, .12), rgba(154, 123, 242, .1)); border: 1px solid rgba(255, 122, 156, .3); }
.support svg { width: 100%; height: auto; }
.support h2 { margin: 0 0 6px; font-size: 24px; }
.support p { margin: 0 0 14px; color: #d6d6e0; }

/* Autres guides */
.more { width: min(1120px, 100% - 32px); margin: 70px auto 0; }
.more h2 { font-size: 26px; margin: 0 0 16px; }
.guide-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.guide-list a { display: block; height: 100%; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.guide-list a:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.guide-list b { display: block; font: 700 17px/1.3 var(--title); margin-bottom: 6px; }
.guide-list span { font-size: 15px; color: var(--text-muted); line-height: 1.5; display: block; }

footer { margin-top: 80px; padding: 30px 0 40px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--text-muted); }
footer .legal { flex-basis: 100%; margin: 0; font-size: 13px; opacity: .8; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 22px; }
  .scene { max-width: 560px; width: 100%; margin: 0 auto; }
  .top nav a:not(.btn) { display: none; }
  .support { grid-template-columns: 1fr; text-align: center; }
  .support svg { width: 150px; margin: 0 auto; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .lead { font-size: 17px; }
  .btn.big { width: 100%; }
  .steps > li { padding-left: 56px; }
  .compare { font-size: 13.5px; }
  .compare th, .compare td { padding: 9px 7px; hyphens: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* Écran du guide streamers : gameplay, caméra en haut, sous-titre qui change */
.stream { background: #120d1f; }
.stream .game { position: absolute; inset: 34% 0 0 0; background:
    radial-gradient(circle at 70% 30%, rgba(255, 70, 85, .45), transparent 45%),
    linear-gradient(180deg, #3b2b5e 0%, #1c3b4a 55%, #0f1d22 100%); overflow: hidden; }
.stream .game::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255,255,255,.04) 0 2px, transparent 2px 5px); }
.stream .cross { position: absolute; left: 50%; top: 45%; width: 18%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: linear-gradient(#fff, #fff) center/2px 100% no-repeat, linear-gradient(#fff, #fff) center/100% 2px no-repeat; opacity: .8; animation: aim 2.4s ease-in-out infinite; }
@keyframes aim { 0%, 100% { transform: translate(-50%, -50%); } 30% { transform: translate(-30%, -60%); } 60% { transform: translate(-70%, -40%); } }
.stream .feed { position: absolute; right: 6%; top: 5%; font: 700 clamp(8px, 1.1vw, 11px)/1 var(--title); color: #fff; background: rgba(0,0,0,.55); padding: 4px 6px; border-radius: 4px; border-left: 3px solid #ff4655; animation: check-in 2.4s ease-out infinite; }
.stream .facecam { position: absolute; left: 0; right: 0; top: 0; height: 34%; background: radial-gradient(circle at 50% 60%, #6a4c93, #2a1b40 70%); display: grid; place-items: center; border-bottom: 3px solid #9146ff; }
.stream .facecam span { font-size: clamp(26px, 4.6vw, 46px); animation: wobble 1.4s ease-in-out infinite; }
.stream .caption { top: 52%; font-size: clamp(10px, 1.45vw, 15px); }
.stream .caption span { background: #ffd166; }
.stream .caption span + span { background: #9146ff; color: #fff; }

.muted-note { font-size: 13px; color: var(--text-muted) !important; margin-top: 30px; }

/* Mascotte (guides/mascotte.mjs) */
.cc-cat { overflow: visible; display: block; }
.cc-cat * { transform-box: view-box; }
.cc-all { transform-origin: 14px 30px; }
.cc-tail { transform-origin: 16.6px 16.6px; animation: cc-tail 2.4s ease-in-out infinite alternate; }
.cc-body { transform-origin: 12px 17.4px; animation: cc-breathe 3.2s ease-in-out infinite; }
.cc-head { transform-origin: 12px 12px; animation: cc-bob 4.8s ease-in-out infinite; }
.cc-ear-r { transform-origin: 14.5px 5.2px; animation: cc-twitch 5.5s ease-in-out infinite; }
.cc-ear-l { transform-origin: 9.4px 5.3px; }
.cc-eye { transform-box: fill-box; transform-origin: center; animation: cc-blink 4.2s ease-in-out infinite; }
.cc-rec { animation: cc-rec 1.2s steps(1) infinite; }
.cc-eyes-big, .cc-eyes-happy, .cc-blush, .cc-tears, .cc-hearts, .cc-sparks, .cc-beam-cone { display: none; }

/* Projecteur */
.cc-beam .cc-beam-cone { display: inline; transform-origin: 29.5px 22.5px; animation: cc-beam 2.6s ease-in-out infinite; }

/* Amour : il grandit d'un bond, fait un cœur qui bat, des petits cœurs s'envolent */
.cc-love .cc-all { animation: cc-grow .9s cubic-bezier(.3,1.6,.5,1) both, cc-hop 1.8s ease-in-out .9s infinite; }
.cc-love .cc-eyes-open { display: none; }
.cc-love .cc-eyes-happy, .cc-love .cc-blush, .cc-love .cc-hearts, .cc-love .cc-sparks { display: inline; }
.cc-love .cc-tail { animation-duration: .45s; }
.cc-love .cc-ear-l { animation: cc-ear-l-happy 1.8s ease-in-out .9s infinite; }
.cc-big-heart { transform-box: fill-box; transform-origin: center; animation: cc-heart-pop .8s cubic-bezier(.3,1.8,.5,1) .35s both, cc-heart-beat .9s ease-in-out 1.15s infinite; }
.cc-big-heart-pos { animation: cc-heart-float 3s ease-in-out infinite; }
.cc-mini-heart { transform-box: fill-box; transform-origin: center; opacity: 0; animation: cc-mini 2.4s ease-out infinite; }
.cc-mini-1 { animation-delay: .9s; }
.cc-mini-2 { animation-delay: 1.7s; }
.cc-mini-3 { animation-delay: 2.5s; }
.cc-spark { transform-box: fill-box; transform-origin: center; animation: cc-spark 1.6s ease-in-out infinite; }
.cc-spark-2 { animation-delay: .5s; }
.cc-spark-3 { animation-delay: 1s; }

/* Tristesse : grands yeux brillants, larmes, oreilles basses, petit tremblement */
.cc-sad .cc-eyes-open { display: none; }
.cc-sad .cc-eyes-big, .cc-sad .cc-tears { display: inline; }
.cc-sad .cc-ear-l { animation: cc-droop-l 1.2s ease-out both; }
.cc-sad .cc-ear-r { animation: cc-droop-r 1.2s ease-out both; }
.cc-sad .cc-head { animation: cc-sad-head 2.6s ease-in-out infinite; }
.cc-sad .cc-all { animation: cc-sob 2.6s ease-in-out infinite; }
.cc-sad .cc-tail { animation: cc-tail-sad 3s ease-in-out infinite alternate; }
.cc-tear { transform-box: fill-box; transform-origin: center top; opacity: 0; animation: cc-tear 1.6s ease-in infinite; }
.cc-tear-2 { animation-delay: .5s; }
.cc-tear-3 { animation-delay: .8s; }
.cc-tear-4 { animation-delay: 1.3s; }

@keyframes cc-tail { from { transform: rotate(-12deg); } to { transform: rotate(16deg); } }
@keyframes cc-tail-sad { from { transform: rotate(4deg); } to { transform: rotate(10deg); } }
@keyframes cc-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.02, 1.04); } }
@keyframes cc-bob { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-4deg); } 65% { transform: rotate(3deg); } }
@keyframes cc-twitch { 0%, 62%, 74%, 100% { transform: rotate(0); } 66% { transform: rotate(-16deg); } 70% { transform: rotate(6deg); } }
@keyframes cc-blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }
@keyframes cc-rec { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .15; } }
@keyframes cc-beam { 0%, 100% { opacity: .75; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.06); } }
@keyframes cc-grow { 0% { transform: scale(.55); } 60% { transform: scale(1.18); } 100% { transform: scale(1.08); } }
@keyframes cc-hop { 0%, 100% { transform: scale(1.08) translateY(0); } 18% { transform: scale(1.14, 1.02) translateY(0); } 40% { transform: scale(1.06, 1.12) translateY(-3px); } 62% { transform: scale(1.1, 1.06) translateY(0); } }
@keyframes cc-ear-l-happy { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(10deg); } }
@keyframes cc-heart-pop { 0% { transform: scale(0) rotate(-25deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes cc-heart-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1.02); } 45% { transform: scale(1.16); } }
@keyframes cc-heart-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1.5px; } }
@keyframes cc-mini { 0% { opacity: 0; transform: translateY(0) scale(.2); } 20% { opacity: 1; transform: translateY(-2px) scale(.42); } 100% { opacity: 0; transform: translateY(-11px) scale(.3) rotate(15deg); } }
@keyframes cc-spark { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes cc-droop-l { to { transform: rotate(-38deg); } }
@keyframes cc-droop-r { to { transform: rotate(38deg); } }
@keyframes cc-sad-head { 0%, 100% { transform: rotate(-6deg) translateY(.6px); } 50% { transform: rotate(-3deg) translateY(.9px); } }
@keyframes cc-sob { 0%, 100% { transform: translateY(0); } 8% { transform: translateY(-.5px); } 16% { transform: translateY(0); } 24% { transform: translateY(-.5px); } 32% { transform: translateY(0); } }
@keyframes cc-tear { 0% { opacity: 0; transform: translateY(0) scale(.4); } 15% { opacity: 1; transform: translateY(0) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px) scale(1.15); } }

@media (prefers-reduced-motion: reduce) {
  .cc-cat * { animation-duration: 0s !important; animation-iteration-count: 1 !important; }
}
