/* ══ Home : maquettes smartphone animées (CSS pur, chargé uniquement sur la home) ══
   Une maquette par bloc de fonctionnalité (templates home_phone_*.tpl).
   Toutes les animations bouclent sur 12s et démarrent ensemble au chargement.
   Les styles de base = état final statique (affiché si prefers-reduced-motion).
   Les "taps" (.hp-tap) sont positionnés en px dans l'écran (200x420) et déclenchés
   via animation-delay = instant du tap - 0.24s (pic de l'onde à 2% de hp-tap). */

/* ── Socle commun ── */
.home-pricing-features-box .container > .hp-phone {
    width: 220px;
    height: 440px;
    flex-shrink: 0;
}
.hp-phone {
    padding: 10px;
    border-radius: 34px;
    background: #1c1c1e;
    box-shadow: 0 20px 40px rgba(230, 0, 126, .18), 0 6px 14px rgba(0, 0, 0, .25);
}
.hp-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    text-align: left;
    font-size: 12px;
    line-height: 1.35;
    color: #333;
}
.hp-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    z-index: 10;
    width: 70px;
    height: 18px;
    margin-left: -35px;
    border-radius: 10px;
    background: #1c1c1e;
}
/* Barre de titre centrée (58px : sert de repère aux coordonnées des taps) */
.hp-head {
    flex-shrink: 0;
    height: 58px;
    padding: 34px 12px 6px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 18px;
}
/* Barre de conversation : avatar + nom */
.hp-contact {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    padding: 34px 12px 8px;
    border-bottom: 1px solid #eee;
}
.hp-title {
    font-weight: bold;
    font-size: 13px;
}
.hp-sub {
    font-size: 10px;
    color: #999;
}
.hp-online {
    color: #2ecc71;
}
.hp-avatar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f9b000, #e6007e);
    color: #fff;
    font-weight: bold;
}
.hp-av-b { background: linear-gradient(135deg, #00a8e5, #6c5ce7); }
.hp-av-c { background: linear-gradient(135deg, #2ecc71, #00a8e5); }
.hp-av-d { background: linear-gradient(135deg, #e6007e, #6c5ce7); }
.hp-av-e { background: linear-gradient(135deg, #fdcb6e, #e17055); }
.hp-tap {
    position: absolute;
    z-index: 20;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border-radius: 50%;
    background: rgba(230, 0, 126, .35);
    opacity: 0;
    pointer-events: none;
    animation: hp-tap 12s infinite;
}
/* Fondu en fin/début de boucle pour masquer la remise à zéro */
.hp-loop {
    animation: hp-loop 12s infinite;
}

@keyframes hp-tap {
    0% { opacity: 0; transform: scale(.4); }
    2% { opacity: 1; transform: scale(1); }
    5%, 100% { opacity: 0; transform: scale(1.7); }
}
@keyframes hp-loop {
    0% { opacity: 0; }
    3%, 96% { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes hp-bar {
    from { transform: scaleY(.25); }
    to { transform: scaleY(1); }
}
@keyframes hp-blink {
    50% { opacity: .2; }
}

@media (prefers-reduced-motion: reduce) {
    .hp-phone *, .hp-phone *::before, .hp-phone *::after {
        animation: none !important;
    }
}

/* ── Carte profil partagée (home_phone_card.tpl) ──
   Reprend la carte réelle : photo pleine largeur, actions à cheval sous la photo,
   pseudo en dégradé puis "âge, ville". Hauteur fixe : les défilements comptent en cartes. */
.hp-card {
    height: 230px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    text-align: center;
}
.hp-card-photo {
    position: relative;
    height: 160px;
    overflow: hidden;
}
.hp-ph-a { background: linear-gradient(160deg, #fbc1d5, #fce2c3); }
.hp-ph-b { background: linear-gradient(160deg, #c3d9fb, #e2d4fc); }
.hp-ph-c { background: linear-gradient(160deg, #c3fbe0, #c3ecfb); }
.hp-ph-d { background: linear-gradient(160deg, #f8c3fb, #fce2c3); }
.hp-card-person {
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 130px;
    margin-left: -65px;
    fill: rgba(255, 255, 255, .7);
}
.hp-card-close {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(240, 240, 240, .9);
}
.hp-card-close svg {
    width: 10px;
    height: 10px;
    fill: #333;
}
.hp-card-actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    margin-top: -20px;
    padding: 0 16px;
}
.hp-card-score {
    width: 46px;
    height: 22px;
    border-radius: 11px;
    background: linear-gradient(90deg, #e6007e, #f9b000);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    line-height: 22px;
}
.hp-card-like, .hp-card-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.hp-card-like {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.hp-card-like svg {
    width: 18px;
    height: 18px;
    fill: #e6007e;
}
.hp-card-chat {
    width: 46px;
    height: 22px;
    border-radius: 11px;
}
.hp-card-chat svg {
    width: 12px;
    height: 12px;
    fill: #333;
}
.hp-card-name {
    display: inline-block;
    margin-top: 4px;
    background: linear-gradient(90deg, #f9b000, #e6007e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 13px;
    font-weight: bold;
}
.hp-card-meta {
    margin-top: 1px;
    font-size: 9.5px;
    color: #777;
}

/* ── 1. Fil de suggestions "partout en France" (.ls-*) ──
   Défilement par paliers du fil (4 profils dupliqués pour une boucle continue). */
.ls-appbar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    height: 62px;
    padding: 30px 12px 4px;
    border-bottom: 1px solid #eee;
}
.ls-logo {
    width: 28px;
    height: auto;
}
.ls-nav {
    display: flex;
    gap: 10px;
}
.ls-nav span {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 7.5px;
    color: #333;
}
.ls-nav svg {
    width: 12px;
    height: 12px;
    margin-bottom: 1px;
    fill: #333;
}
.ls-body {
    position: relative;
    flex: 1;
    overflow: hidden;
    padding: 10px 10px 0;
    background: #f5f6fa;
}
.ls-body::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 40px;
    background: linear-gradient(rgba(245, 246, 250, 0), #f5f6fa);
}
.ls-sort {
    position: absolute;
    top: 4px;
    right: 6px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f9b000, #e6007e);
    box-shadow: 0 2px 6px rgba(230, 0, 126, .3);
}
.ls-sort svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}
.ls-track {
    animation: ls-scroll 12s infinite;
}

/* La piste fait 8 cartes : chaque palier = 1 carte = 12.5% de sa hauteur */
@keyframes ls-scroll {
    0%, 18% { transform: translateY(0); }
    25%, 43% { transform: translateY(-12.5%); }
    50%, 68% { transform: translateY(-25%); }
    75%, 93% { transform: translateY(-37.5%); }
    100% { transform: translateY(-50%); }
}

/* ── 2. Appel vocal puis visio (.cl-*) ──
   Appel en cours (0-22%) → décroché, chrono + ondes (24-50%) → tap caméra (50%) → visio (53%). */
.hp-screen.cl-screen {
    background: #1c1c1e;
    color: #fff;
}
.cl-voice {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 90px;
    background: linear-gradient(160deg, #3a2142, #1c1c1e 70%);
}
.cl-avatar-wrap {
    position: relative;
}
.cl-avatar-wrap .hp-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    font-size: 30px;
}
.cl-rings {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    animation: cl-rings 12s infinite;
}
.cl-rings::before, .cl-rings::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 2px solid rgba(249, 176, 0, .7);
    border-radius: 50%;
    animation: cl-ring 1.6s infinite ease-out;
}
.cl-rings::after {
    animation-delay: .8s;
}
.cl-name {
    margin-top: 16px;
    font-size: 16px;
    font-weight: bold;
}
.cl-status {
    position: relative;
    width: 100%;
    height: 14px;
    margin-top: 4px;
    font-size: 11px;
    line-height: 14px;
    color: rgba(255, 255, 255, .7);
    text-align: center;
}
.cl-calling, .cl-timer {
    position: absolute;
    right: 0;
    left: 0;
}
.cl-calling {
    opacity: 0;
    animation: cl-calling 12s infinite;
}
.cl-timer {
    height: 14px;
    overflow: hidden;
    animation: cl-connected 12s infinite;
}
.cl-timer span {
    display: block;
    animation: cl-timer 12s infinite;
}
.cl-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 24px;
    margin-top: 18px;
    animation: cl-connected 12s infinite;
}
.cl-wave i {
    width: 3px;
    height: 24px;
    border-radius: 2px;
    background: #f9b000;
    animation: hp-bar .5s infinite alternate ease-in-out;
}
.cl-wave i:nth-child(2n) { animation-delay: -.2s; }
.cl-wave i:nth-child(3n) { animation-duration: .35s; }
.cl-video {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 22%, rgba(255, 255, 255, .55) 0 18px, transparent 19px),
        radial-gradient(circle at 82% 48%, rgba(255, 255, 255, .35) 0 12px, transparent 13px),
        linear-gradient(170deg, #fbc1d5, #fce2c3 60%, #f9d48a);
    animation: cl-video 12s infinite;
}
/* Assombrit le bas de la vidéo pour garder les boutons lisibles */
.cl-video::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 110px;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .35));
}
.cl-person {
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 200px;
    margin-left: -100px;
    fill: rgba(255, 255, 255, .8);
    transform-origin: 50% 100%;
    animation: cl-breathe 3s infinite ease-in-out;
}
.cl-chip {
    position: absolute;
    top: 34px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .35);
    font-size: 10px;
}
.cl-pip {
    position: absolute;
    top: 34px;
    right: 10px;
    width: 52px;
    height: 76px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 10px;
    background: linear-gradient(160deg, #74b9ff, #a29bfe);
}
.cl-pip svg {
    position: absolute;
    bottom: 0;
    left: 2px;
    width: 44px;
    fill: rgba(255, 255, 255, .8);
}
.cl-controls {
    position: absolute;
    right: 0;
    bottom: 22px;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 14px;
}
.cl-ctrl {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    color: #fff;
}
.cl-ctrl svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.cl-ctrl-cam {
    background: #fff;
    color: #1c1c1e;
    animation: cl-cam 12s infinite;
}
.cl-ctrl-end {
    background: #e74c3c;
}

@keyframes cl-ring {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(1.8); opacity: 0; }
}
@keyframes cl-rings {
    0%, 22% { opacity: 1; }
    24%, 100% { opacity: 0; }
}
@keyframes cl-calling {
    0%, 22% { opacity: 1; }
    24%, 100% { opacity: 0; }
}
@keyframes cl-connected {
    0%, 22% { opacity: 0; }
    24%, 100% { opacity: 1; }
}
@keyframes cl-timer {
    0%, 25% { transform: translateY(0); animation-timing-function: steps(3, end); }
    50%, 100% { transform: translateY(-42px); }
}
@keyframes cl-video {
    0% { opacity: 1; }
    3%, 50% { opacity: 0; }
    53%, 100% { opacity: 1; }
}
@keyframes cl-cam {
    0% { background: #fff; color: #1c1c1e; }
    3%, 50% { background: rgba(255, 255, 255, .2); color: #fff; }
    53%, 100% { background: #fff; color: #1c1c1e; }
}
@keyframes cl-breathe {
    50% { transform: scale(1.03) rotate(-1deg); }
}

/* ── 3. Messagerie : discussions / invitations (.ib-*) ──
   Tap "Invitations" (16%) → accepte la 1re (36%) → refuse la suivante (52%)
   → tap "Discussions" (68%) → la nouvelle discussion apparaît en tête (72%). */
.ib-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}
.ib-tabs {
    position: relative;
    display: flex;
    flex-shrink: 0;
    height: 30px;
    border-bottom: 1px solid #eee;
}
.ib-tab {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #555;
}
.ib-count {
    display: inline-block;
    height: 14px;
    min-width: 14px;
    margin-left: 4px;
    padding: 0 4px;
    overflow: hidden;
    border-radius: 7px;
    background: #f9b000;
    color: #fff;
    font-size: 9px;
    line-height: 14px;
    text-align: center;
}
.ib-count span {
    display: block;
}
.ib-count-disc span {
    transform: translateY(-14px);
    animation: ib-count-disc 12s infinite;
}
.ib-count-inv span {
    transform: translateY(-28px);
    animation: ib-count-inv 12s infinite;
}
.ib-ind {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50%;
    height: 2px;
    background: #e6007e;
    animation: ib-tab 12s infinite;
}
.ib-panels {
    flex: 1;
    overflow: hidden;
}
.ib-track {
    display: flex;
    width: 200%;
    animation: ib-track 12s infinite;
}
.ib-list {
    width: 50%;
    padding-top: 8px;
}
.ib-item {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 56px;
    padding: 0 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: inset 0 -1px #f3f3f3;
}
.ib-item .hp-avatar {
    width: 34px;
    height: 34px;
}
.ib-txt {
    flex: 1;
    min-width: 0;
}
.ib-name {
    font-size: 11px;
    font-weight: bold;
}
.ib-name small {
    font-weight: normal;
    color: #999;
}
.ib-msg {
    overflow: hidden;
    font-size: 10px;
    color: #777;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ib-time {
    align-self: flex-start;
    margin-top: 12px;
    font-size: 9px;
    color: #aaa;
}
.ib-acts {
    display: flex;
    gap: 4px;
}
.ib-ok, .ib-ko {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}
.ib-ok {
    background: #2ecc71;
    color: #fff;
}
.ib-ko {
    background: #fce4e4;
    color: #e74c3c;
}
.ib-ok svg, .ib-ko svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}
.ib-accepted {
    height: 0;
    opacity: 0;
    animation: ib-accepted 12s infinite;
}
.ib-refused {
    height: 0;
    opacity: 0;
    animation: ib-refused 12s infinite;
}
.ib-new {
    animation: ib-new 12s infinite;
}
.ib-new .ib-msg {
    color: #e6007e;
    font-weight: bold;
}

@keyframes ib-tab {
    0%, 16% { transform: translateX(0); }
    18%, 68% { transform: translateX(100%); }
    70%, 100% { transform: translateX(0); }
}
@keyframes ib-track {
    0%, 16% { transform: translateX(0); }
    18%, 68% { transform: translateX(-50%); }
    70%, 100% { transform: translateX(0); }
}
@keyframes ib-count-disc {
    0%, 69% { transform: translateY(0); }
    71%, 100% { transform: translateY(-14px); }
}
@keyframes ib-count-inv {
    0%, 39% { transform: translateY(0); }
    41%, 55% { transform: translateY(-14px); }
    57%, 100% { transform: translateY(-28px); }
}
@keyframes ib-accepted {
    0%, 36% { height: 56px; opacity: 1; background: #fff; }
    38%, 42% { height: 56px; opacity: 1; background: #e3f8ec; }
    46%, 100% { height: 0; opacity: 0; background: #e3f8ec; }
}
@keyframes ib-refused {
    0%, 53% { height: 56px; opacity: 1; transform: none; }
    57% { height: 56px; opacity: 0; transform: translateX(-100%); }
    61%, 100% { height: 0; opacity: 0; transform: translateX(-100%); }
}
@keyframes ib-new {
    0%, 70% { height: 0; opacity: 0; background: #fff3d6; }
    74%, 80% { height: 56px; opacity: 1; background: #fff3d6; }
    92%, 100% { height: 56px; opacity: 1; background: #fff; }
}

/* ── 4. Critères de recherche puis résultats classés (.cr-*) ──
   Âge (6-24%) → distance (30-38%) → genre (44%) → centres d'intérêt (48-51%)
   → tap "Rechercher" (55%) → résultats du plus au moins compatible (60%), défilés carte par carte (78%, 88%). */
.cr-stage {
    position: relative;
    flex: 1;
    overflow: hidden;
}
.cr-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 12px 14px;
}
.cr-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 11px;
    font-weight: bold;
}
.cr-genre {
    align-items: center;
}
.cr-val {
    position: relative;
    font-size: 10px;
    font-weight: normal;
    color: #777;
}
.cr-v1, .cr-v2 {
    white-space: nowrap;
}
.cr-v1 {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
}
.cr-slider {
    position: relative;
    height: 16px;
    margin-top: 6px;
}
.cr-slider::before {
    content: '';
    position: absolute;
    top: 7px;
    right: 0;
    left: 0;
    height: 2px;
    background: #e5e5e5;
}
.cr-fill {
    position: absolute;
    top: 7px;
    height: 2px;
    background: #f9b000;
}
.cr-knob {
    position: absolute;
    top: 1px;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-radius: 50%;
    background: #f9b000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
/* Positions finales (âge 25-35 sur 18-70, distance 100 km sur 200) */
.cr-age-fill { left: 13.5%; right: 67.3%; animation: cr-age-fill 12s infinite; }
.cr-age-min { left: 13.5%; animation: cr-age-min 12s infinite; }
.cr-age-max { left: 32.7%; animation: cr-age-max 12s infinite; }
.cr-dist-fill { left: 0; right: 50%; animation: cr-dist-fill 12s infinite; }
.cr-dist-knob { left: 50%; animation: cr-dist-knob 12s infinite; }
.cr-age .cr-v1 { animation: cr-v1-age 12s infinite; }
.cr-age .cr-v2 { animation: cr-v2-age 12s infinite; }
.cr-dist .cr-v1 { animation: cr-v1-dist 12s infinite; }
.cr-dist .cr-v2 { animation: cr-v2-dist 12s infinite; }
.cr-select {
    position: relative;
    width: 108px;
    height: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 10px;
    font-weight: normal;
    color: #555;
    animation: cr-select 12s infinite;
}
.cr-select .cr-v1, .cr-select .cr-v2 {
    position: absolute;
    top: 2px;
    right: auto;
    left: 10px;
}
.cr-select .cr-v1 { animation: cr-v1-genre 12s infinite; }
.cr-select .cr-v2 { animation: cr-v2-genre 12s infinite; }
.cr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}
.cr-chip {
    padding: 2px 8px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    color: #555;
    font-size: 9.5px;
}
.cr-chip-on {
    border-color: #e6007e;
    background: #e6007e;
    color: #fff;
    animation: cr-chip 12s infinite;
}
.cr-bar {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    background: linear-gradient(90deg, #fbc1d5, #fce2c3);
}
.cr-btn {
    width: 150px;
    padding: 7px 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    text-align: center;
    font-size: 11px;
    font-weight: bold;
}
.cr-results {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: #f5f6fa;
    transform: translateX(100%);
    animation: cr-results 12s infinite;
}
.cr-res-title {
    font-size: 11px;
    font-weight: bold;
}
.cr-res-sub {
    margin-bottom: 8px;
    font-size: 9px;
    color: #999;
}
.cr-res-view {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
/* 3 cartes : chaque palier = 1 carte = 33.333% de la piste */
.cr-res-track {
    animation: cr-res-track 12s infinite;
}

@keyframes cr-age-min {
    0%, 6% { left: 0; transform: none; }
    8%, 12% { transform: scale(1.35); }
    14%, 100% { left: 13.5%; transform: none; }
}
@keyframes cr-age-max {
    0%, 16% { left: 42.3%; transform: none; }
    18%, 22% { transform: scale(1.35); }
    24%, 100% { left: 32.7%; transform: none; }
}
@keyframes cr-age-fill {
    0%, 6% { left: 0; right: 57.7%; }
    14%, 16% { left: 13.5%; right: 57.7%; }
    24%, 100% { left: 13.5%; right: 67.3%; }
}
@keyframes cr-dist-knob {
    0%, 30% { left: 18%; transform: none; }
    32%, 36% { transform: scale(1.35); }
    38%, 100% { left: 50%; transform: none; }
}
@keyframes cr-dist-fill {
    0%, 30% { right: 82%; }
    38%, 100% { right: 50%; }
}
@keyframes cr-v1-age {
    0%, 24% { opacity: 1; }
    26%, 100% { opacity: 0; }
}
@keyframes cr-v2-age {
    0%, 24% { opacity: 0; }
    26%, 100% { opacity: 1; }
}
@keyframes cr-v1-dist {
    0%, 37% { opacity: 1; }
    39%, 100% { opacity: 0; }
}
@keyframes cr-v2-dist {
    0%, 37% { opacity: 0; }
    39%, 100% { opacity: 1; }
}
@keyframes cr-v1-genre {
    0%, 43% { opacity: 1; }
    45%, 100% { opacity: 0; }
}
@keyframes cr-v2-genre {
    0%, 43% { opacity: 0; }
    45%, 100% { opacity: 1; }
}
@keyframes cr-select {
    0%, 41% { border-color: #ddd; }
    43%, 46% { border-color: #e6007e; }
    48%, 100% { border-color: #ddd; }
}
@keyframes cr-chip {
    0%, 47% { border-color: #ddd; background: #fff; color: #555; transform: none; }
    49% { transform: scale(1.15); }
    50%, 100% { border-color: #e6007e; background: #e6007e; color: #fff; transform: none; }
}
@keyframes cr-results {
    0%, 57% { transform: translateX(100%); }
    60%, 100% { transform: translateX(0); }
}
@keyframes cr-res-track {
    0%, 60% { opacity: 0; transform: translateY(16px); }
    64%, 76% { opacity: 1; transform: translateY(0); }
    79%, 86% { opacity: 1; transform: translateY(-33.333%); }
    89%, 100% { opacity: 1; transform: translateY(-66.667%); }
}

/* ── 5. Messages vocaux (.vm-*) ──
   Tap micro (15%) → enregistrement (18-52%) → tap envoi (52%) → bulle vocale (56%)
   → lecture (62-80%) → "écrit…" (82-88%) → réponse (88%) → reset. */
.vm-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 10px;
}
.vm-msg {
    max-width: 80%;
    padding: 8px 10px;
    border-radius: 14px;
}
.vm-msg-in {
    align-self: flex-start;
    background: #f0f0f0;
    border-bottom-left-radius: 4px;
}
.vm-msg-out {
    align-self: flex-end;
    background: #fedea8;
    border-bottom-right-radius: 4px;
}
.vm-voice {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    animation: vm-sent 12s infinite;
}
.vm-play {
    position: relative;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f9b000;
}
.vm-play svg {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 12px;
    height: 12px;
    fill: #fff;
}
.vm-icon-play {
    animation: vm-icon-play 12s infinite;
}
.vm-icon-pause {
    opacity: 0;
    animation: vm-icon-pause 12s infinite;
}
.vm-wave {
    position: relative;
    width: 70px;
    height: 20px;
}
.vm-wave-bars {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 70px;
    height: 100%;
}
.vm-wave-bars i {
    display: block;
    width: 2px;
    border-radius: 1px;
    background: rgba(0, 0, 0, .25);
}
.vm-wave-progress {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    overflow: hidden;
    animation: vm-progress 12s infinite linear;
}
.vm-wave-progress i {
    background: #e6007e;
}
.vm-duration {
    font-size: 10px;
    color: #8a6d2c;
}
.vm-reply-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.vm-typing {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    background: #f0f0f0;
    opacity: 0;
    animation: vm-typing 12s infinite;
}
.vm-typing i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #999;
    animation: vm-typing-dot 1s infinite;
}
.vm-typing i:nth-child(2) { animation-delay: .15s; }
.vm-typing i:nth-child(3) { animation-delay: .3s; }
.vm-reply {
    animation: vm-reply 12s infinite;
}
.vm-footer {
    position: relative;
    flex-shrink: 0;
    height: 50px;
    border-top: 1px solid #eee;
}
.vm-input, .vm-rec {
    position: absolute;
    top: 0;
    right: 10px;
    bottom: 0;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vm-input {
    animation: vm-input 12s infinite;
}
.vm-rec {
    opacity: 0;
    animation: vm-rec 12s infinite;
}
.vm-input-field {
    flex: 1;
    padding: 7px 12px;
    border-radius: 1.5rem;
    background: #f0f0f0;
    color: #999;
    font-size: 11px;
}
.vm-btn {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f9b000;
}
.vm-btn svg {
    width: 15px;
    height: 15px;
    fill: #fff;
}
.vm-rec-capsule {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 12px;
    border-radius: 1.5rem;
    background: #f0f0f0;
}
.vm-rec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e74c3c;
    animation: hp-blink 1s infinite;
}
.vm-timer {
    height: 14px;
    overflow: hidden;
    font-size: 11px;
    line-height: 14px;
    color: #555;
}
.vm-timer span {
    display: block;
    animation: vm-timer 12s infinite;
}
.vm-live {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 14px;
}
.vm-live i {
    width: 2px;
    height: 14px;
    border-radius: 1px;
    background: #e6007e;
    animation: hp-bar .5s infinite alternate ease-in-out;
}
.vm-live i:nth-child(3n)   { animation-delay: -.15s; }
.vm-live i:nth-child(3n+1) { animation-delay: -.3s; }
.vm-live i:nth-child(4n)   { animation-duration: .35s; }

@keyframes vm-input {
    0%, 16% { opacity: 1; }
    18%, 52% { opacity: 0; }
    54%, 100% { opacity: 1; }
}
@keyframes vm-rec {
    0%, 16% { opacity: 0; transform: translateY(6px); }
    18%, 52% { opacity: 1; transform: none; }
    54%, 100% { opacity: 0; transform: none; }
}
@keyframes vm-timer {
    0%, 19% { transform: translateY(0); animation-timing-function: steps(4, end); }
    51%, 100% { transform: translateY(-56px); }
}
@keyframes vm-sent {
    0%, 55% { opacity: 0; transform: translateY(10px) scale(.95); }
    59%, 95% { opacity: 1; transform: none; }
    100% { opacity: 0; transform: none; }
}
@keyframes vm-progress {
    0%, 62% { width: 0; }
    80%, 100% { width: 100%; }
}
@keyframes vm-icon-play {
    0%, 61% { opacity: 1; }
    62%, 80% { opacity: 0; }
    81%, 100% { opacity: 1; }
}
@keyframes vm-icon-pause {
    0%, 61% { opacity: 0; }
    62%, 80% { opacity: 1; }
    81%, 100% { opacity: 0; }
}
@keyframes vm-typing {
    0%, 81% { opacity: 0; }
    83%, 87% { opacity: 1; }
    88%, 100% { opacity: 0; }
}
@keyframes vm-reply {
    0%, 87% { opacity: 0; transform: translateY(10px) scale(.95); }
    90%, 95% { opacity: 1; transform: none; }
    100% { opacity: 0; transform: none; }
}
@keyframes vm-typing-dot {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-3px); }
}
