/* =============================================================================
 * Accueil : aperçus visuels des cartes (100 % CSS, aucune image)
 * Fixes sur mobile ; animés au survol sur ordinateur (hover: hover), jamais si
 * l'utilisateur demande moins d'animations.
 * ========================================================================== */
.hm-card { padding-top: 12px; }
.pv { position: relative; display: flex; align-items: center; justify-content: center; height: 96px; margin: 0 0 10px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #f6f3ff, #fdf2f8); font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Inter", sans-serif; color: var(--ink); }
.pv * { transition: transform .5s cubic-bezier(.2, .9, .3, 1.2), opacity .4s, width .7s ease, filter .5s; }
.pv.dark { background: linear-gradient(135deg, #1e1145, #0f0a24); color: #fff; }
.pv.grey { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }
.hm-card .tag { z-index: 2; }

/* Symboles */
.pv-sym span { display: inline-block; font-size: 24px; margin: 0 5px; color: #6d28d9; }
/* Polices */
.pv-font { flex-direction: column; gap: 2px; font-size: 21px; line-height: 1.2; }
.pv-font i { font-style: normal; display: block; }
.pv-font i:nth-child(2) { color: #6d28d9; } .pv-font i:nth-child(3) { color: #db2777; font-size: 18px; }
/* Idées de bio */
.pv-idea { justify-content: flex-start; padding: 0 16px; }
.pv-idea div { font-size: 13px; line-height: 1.5; text-align: left; font-family: Inter, sans-serif; }
.pv-idea b { display: block; font-size: 12px; margin: 0; color: var(--v); }
.pv-idea .caret { display: inline-block; width: 2px; height: 13px; background: var(--v); vertical-align: middle; margin-left: 2px; }
/* Page bio */
.pv-bio { flex-direction: column; gap: 4px; background: linear-gradient(160deg, #f5f3ff, #fce7f3); }
.pv-bio .av { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(45deg, #a78bfa, #f472b6); }
.pv-bio .bt { width: 120px; height: 13px; border-radius: 99px; background: #fff; border: 1px solid #e4dcff; }
/* Stories à la une */
.pv-story span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 4px; border-radius: 50%; background: #efe6da; color: #7a5c45; font-size: 17px; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #dbdbdb; font-family: "Segoe UI Symbol", sans-serif; }
/* Emojis */
.pv-emo span { display: inline-block; font-size: 28px; margin: 0 2px; }
/* Roue */
.pv-wheel .w { width: 78px; height: 78px; border-radius: 50%; background: conic-gradient(#7c3aed 0 25%, #ec4899 0 50%, #f59e0b 0 75%, #10b981 0); border: 4px solid #0f0a24; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.pv-wheel .w::after { content: ''; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; border: 3px solid #0f0a24; }
.pv-wheel .ptr { position: absolute; top: 4px; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top: 12px solid #fff; z-index: 2; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
/* Sondage */
.pv-poll { flex-direction: column; align-items: stretch; gap: 6px; padding: 0 18px; }
.pv-poll div { position: relative; height: 16px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.pv-poll div i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.pv-poll div:nth-child(1) i { width: 72%; } .pv-poll div:nth-child(2) i { width: 44%; background: linear-gradient(90deg, #3b82f6, #22d3ee); } .pv-poll div:nth-child(3) i { width: 21%; background: linear-gradient(90deg, #10b981, #84cc16); }
/* Scoreboard */
.pv-score .bar { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: #0b1220; color: #fff; font: 800 12px Inter, sans-serif; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.pv-score .bar em { font-style: normal; font-size: 20px; color: #fde68a; min-width: 12px; text-align: center; display: inline-block; }
.pv-score .bar .t { font-size: 10px; color: #a78bfa; }
/* Timer */
.pv-timer { font: 900 38px/1 "Inter", sans-serif; letter-spacing: 2px; color: #fff; }
.pv-timer .c { color: #a78bfa; margin: 0 2px; }
/* Jeux */
.pv-games span { display: inline-block; font-size: 30px; margin: 0 6px; }
/* Bandeau */
.pv-marquee { justify-content: flex-start; }
.pv-marquee .tx { white-space: nowrap; font: 900 18px Inter, sans-serif; color: #fde68a; padding-left: 16px; text-transform: uppercase; letter-spacing: 1px; }
/* QR */
.pv-qr svg { width: 72px; height: 72px; }
/* Compresser */
.pv-comp { flex-direction: column; gap: 6px; font: 800 13px Inter, sans-serif; }
.pv-comp .b { width: 140px; height: 12px; border-radius: 6px; background: #e4dcff; overflow: hidden; }
.pv-comp .b i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #8b5cf6, #ec4899); }
/* Convertir */
.pv-conv { gap: 10px; font: 900 13px Inter, sans-serif; }
.pv-conv span { padding: 8px 10px; border-radius: 10px; background: #fff; border: 1.5px solid #e4dcff; }
.pv-conv .ar { background: none; border: 0; color: var(--v); font-size: 20px; padding: 0; }
/* Flouter */
.pv-blur { gap: 8px; font: 800 14px Inter, sans-serif; }
.pv-blur .pl { padding: 6px 10px; border-radius: 8px; background: #fff; border: 2px solid #1e293b; letter-spacing: 1px; filter: blur(3px); }
/* Code-barres */
.pv-barcode .bc { width: 130px; height: 54px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 7px, transparent 7px 9px, #111 9px 10px, transparent 10px 13px); }
/* PDF */
.pv-pdf .pg { position: relative; width: 44px; height: 58px; border-radius: 5px; background: #fff; border: 1.5px solid #cbd5e1; box-shadow: 0 4px 10px rgba(15, 23, 42, .08); margin: 0 3px; }
.pv-pdf .pg::before { content: 'PDF'; position: absolute; left: 4px; bottom: 5px; font: 900 8px Inter, sans-serif; color: #fff; background: #ef4444; padding: 1px 3px; border-radius: 3px; }
.pv-pdf .pg::after { content: ''; position: absolute; left: 7px; right: 7px; top: 9px; height: 18px; background: repeating-linear-gradient(#e2e8f0 0 2px, transparent 2px 5px); }
.pv-pdf .op { font-size: 20px; margin: 0 4px; color: var(--mute); }
.pv-sign svg { width: 120px; height: 44px; }
.pv-sign path { fill: none; stroke: #1e293b; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s ease; }
.pv-words { font: 900 28px Inter, sans-serif; color: var(--ink); }
.pv-words small { font-size: 13px; color: var(--mute); margin-left: 4px; }

/* ---------------------------------------------------------------------------
 * Animations au survol : ordinateur uniquement
 * ------------------------------------------------------------------------- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .hm-card { transition: transform .25s cubic-bezier(.2, .9, .3, 1.2), box-shadow .25s, border-color .15s; }
    .hm-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 40px rgba(76, 29, 149, .14); }
    .hm-card:hover .pv-sym span { animation: pvPop .6s both; }
    .hm-card:hover .pv-sym span:nth-child(2), .hm-card:hover .pv-emo span:nth-child(2), .hm-card:hover .pv-story span:nth-child(2) { animation-delay: .06s; }
    .hm-card:hover .pv-sym span:nth-child(3), .hm-card:hover .pv-emo span:nth-child(3), .hm-card:hover .pv-story span:nth-child(3) { animation-delay: .12s; }
    .hm-card:hover .pv-sym span:nth-child(4), .hm-card:hover .pv-emo span:nth-child(4), .hm-card:hover .pv-story span:nth-child(4) { animation-delay: .18s; }
    .hm-card:hover .pv-sym span:nth-child(5), .hm-card:hover .pv-emo span:nth-child(5) { animation-delay: .24s; }
    .hm-card:hover .pv-emo span, .hm-card:hover .pv-story span { animation: pvPop .6s both; }
    .hm-card:hover .pv-font i { animation: pvSlide .5s both; }
    .hm-card:hover .pv-font i:nth-child(2) { animation-delay: .08s; } .hm-card:hover .pv-font i:nth-child(3) { animation-delay: .16s; }
    .hm-card:hover .pv-idea .caret { animation: pvBlink .8s steps(1) infinite; }
    .hm-card:hover .pv-idea div { animation: pvSlide .5s both; }
    .hm-card:hover .pv-bio .bt { animation: pvGrow .5s both; }
    .hm-card:hover .pv-bio .bt:nth-child(3) { animation-delay: .08s; } .hm-card:hover .pv-bio .bt:nth-child(4) { animation-delay: .16s; }
    .hm-card:hover .pv-wheel .w { transform: rotate(1080deg); transition: transform 2.4s cubic-bezier(.12, .7, .15, 1); }
    .hm-card:hover .pv-poll div i { animation: pvBar 1s ease-out both; }
    .hm-card:hover .pv-score em:first-of-type { animation: pvFlip .5s .3s both; }
    .hm-card:hover .pv-timer .c { animation: pvBlink 1s steps(1) infinite; }
    .hm-card:hover .pv-games span:first-child { transform: rotate(360deg); }
    .hm-card:hover .pv-games span:last-child { transform: rotateY(540deg); }
    .hm-card:hover .pv-marquee .tx { animation: pvMarquee 4s linear infinite; }
    .hm-card:hover .pv-qr svg { transform: scale(1.12) rotate(-4deg); }
    .hm-card:hover .pv-comp .b i { width: 22%; }
    .hm-card:hover .pv-conv .ar { transform: translateX(6px); }
    .hm-card:hover .pv-blur .pl { filter: blur(6px); }
    .hm-card:hover .pv-barcode .bc { transform: scaleX(1.1); }
    .hm-card:hover .pv-merge .pg:first-child { transform: translateX(26px) rotate(-6deg); }
    .hm-card:hover .pv-merge .pg:last-child { transform: translateX(-26px) rotate(6deg); }
    .hm-card:hover .pv-merge .op { opacity: 0; }
    .hm-card:hover .pv-shrink .pg { transform: scale(.7); }
    .hm-card:hover .pv-split .pg:first-child { transform: translateX(-10px) rotate(-8deg); }
    .hm-card:hover .pv-split .pg:last-child { transform: translateX(10px) rotate(8deg); }
    .hm-card:hover .pv-lock .op { transform: scale(1.25); }
    .hm-card:hover .pv-sign path { animation: pvDraw 1.2s ease both; }
    .hm-card:hover .pv-words { animation: pvPop .5s both; }
}
@keyframes pvPop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); } }
@keyframes pvSlide { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pvGrow { from { transform: scaleX(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pvBar { from { width: 0; } }
@keyframes pvBlink { 50% { opacity: 0; } }
@keyframes pvFlip { 0% { transform: rotateX(90deg); } 100% { transform: none; } }
@keyframes pvMarquee { from { transform: translateX(0); } to { transform: translateX(-60%); } }
@keyframes pvDraw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }

/* Rangée « Les plus utilisés » */
.hm-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .hm-top { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hm-top .hm-card { font-size: 13px; }
.hm-top .hm-card b { font-size: 15px; }
.hm-top .rank { position: absolute; top: 8px; left: 8px; z-index: 2; width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(135deg, var(--v), var(--p)); color: #fff; font: 900 12px Inter, sans-serif; display: flex; align-items: center; justify-content: center; }

/* rangée « Les plus utilisés » en 2 colonnes (mobile) : aperçus plus compacts */
@media (max-width: 899px) {
    .hm-top .pv { height: 80px; }
    .hm-top .pv-sym span { font-size: 18px; margin: 0 2px; }
    .hm-top .pv-emo span { font-size: 19px; margin: 0; }
    .hm-top .pv-score .bar { transform: scale(.66); }
    .hm-top .pv-pdf .pg { width: 36px; height: 48px; }
}

/* Famille « temps » */
.pv-chrono { font: 900 30px/1 "Inter", sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.pv-chrono small { font-size: 20px; color: #a78bfa; }
.pv-cd { gap: 6px; }
.pv-cd span { display: flex; flex-direction: column; align-items: center; background: rgba(255, 255, 255, .1); border-radius: 8px; padding: 6px 7px; font: 900 20px/1 "Inter", sans-serif; color: #fff; }
.pv-cd small { font-size: 8px; letter-spacing: .1em; color: #c4b5fd; margin-top: 3px; }
.pv-clock .face { position: relative; width: 70px; height: 70px; border-radius: 50%; border: 3px solid #fff; }
.pv-clock .face i { position: absolute; left: 50%; bottom: 50%; width: 4px; margin-left: -2px; border-radius: 2px; background: #fff; transform-origin: 50% 100%; }
.pv-clock .face i:nth-child(1) { height: 20px; transform: rotate(-60deg); }
.pv-clock .face i:nth-child(2) { height: 28px; width: 3px; margin-left: -1.5px; transform: rotate(60deg); }
.pv-clock .face i:nth-child(3) { height: 30px; width: 2px; margin-left: -1px; background: #f472b6; transform: rotate(150deg); }
.pv-pomo { font: 900 30px/1 "Inter", sans-serif; color: #fff; gap: 8px; }
.pv-pomo .d { display: flex; gap: 4px; }
.pv-pomo .d i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.pv-pomo .d i.ok { background: #f87171; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .hm-card:hover .pv-clock .face i:nth-child(3) { transform: rotate(510deg); transition: transform 2s linear; }
    .hm-card:hover .pv-cd span:last-child { animation: pvBlink 1s steps(1) infinite; }
}
/* Kits de stream */
.pv-kit { gap: 8px; }
.pv-kit i { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 12px currentColor; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .hm-card:hover .pv-kit i { transform: translateY(-6px); } .hm-card:hover .pv-kit i:nth-child(2n) { transform: translateY(6px); } }
