/* Illustration du haut de page : téléphone + notification « Code reçu » + icônes de services flottantes. */
.hero-phone {
    position: relative;
    width: 520px;
    height: 540px;
    flex-shrink: 0;
    perspective: 1500px;
    /* Dimensions du téléphone, partagées par l'écran, les tranches et les boutons. */
    --pw: 250px;
    --ph: 510px;
    --pr: 46px;
}

/* Scène 3D : le téléphone est incliné et a une épaisseur réelle (tranches empilées). */
.hp-stage {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(10deg) rotateY(-26deg) rotateZ(3deg);
    animation: hp-sway 9s ease-in-out infinite;
}
.hp-slice {
    position: absolute;
    left: 50%;
    top: 10px;
    width: var(--pw);
    height: var(--ph);
    border-radius: var(--pr);
    transform: translateX(-50%) translateZ(var(--z));
    background: linear-gradient(90deg, #6b6680, #c9c5d8 18%, #8a859c 45%, #d8d4e6 70%, #5f5a73);
}
.hp-slice:last-of-type {
    box-shadow: 0 50px 90px rgba(44, 22, 140, .35);
}
.hp-btn {
    position: absolute;
    left: calc(50% - var(--pw) / 2 - 3px);
    width: 6px;
    border-radius: 3px;
    transform: translateZ(-8px);
    background: linear-gradient(90deg, #4c4860, #b8b3c9);
}
.hp-btn-power { left: calc(50% + var(--pw) / 2 - 3px); top: 150px; height: 80px; }
.hp-btn-vol1 { top: 130px; height: 50px; }
.hp-btn-vol2 { top: 195px; height: 50px; }
.hp-gloss {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(118deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .06) 28%, transparent 42%);
    pointer-events: none;
}
.hp-floor {
    position: absolute;
    left: 120px;
    right: 90px;
    bottom: -6px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(30, 14, 90, .35), transparent);
    filter: blur(6px);
}
@keyframes hp-sway {
    0%, 100% { transform: rotateX(10deg) rotateY(-26deg) rotateZ(3deg); }
    50% { transform: rotateX(6deg) rotateY(-18deg) rotateZ(1deg) translateY(-8px); }
}
.hp-glow {
    position: absolute;
    inset: 40px 30px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(85, 47, 223, .28), rgba(85, 47, 223, .08) 60%, transparent);
    filter: blur(10px);
}

/* Téléphone */
.hp-device {
    position: absolute;
    left: 50%;
    top: 10px;
    width: var(--pw);
    height: var(--ph);
    padding: 9px;
    border-radius: var(--pr);
    transform: translateX(-50%) translateZ(0);
    background: linear-gradient(145deg, #3a3650, #0f0d17 40%, #1c1928);
    box-shadow: 0 0 0 1.5px #a9a4bd, 0 0 0 3px #3a3650 inset;
}
.hp-screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 38px;
    background:
        radial-gradient(120% 60% at 80% 0%, #5b3df0 0%, transparent 55%),
        radial-gradient(90% 50% at 0% 100%, #3b23b5 0%, transparent 60%),
        linear-gradient(170deg, #241857, #120c2c 70%);
}
.hp-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hp-status {
    position: absolute;
    top: 18px;
    left: 26px;
    right: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.hp-status-icons {
    display: flex;
    align-items: flex-end;
    gap: 2px;
}
.hp-status-icons i {
    width: 3px;
    border-radius: 1px;
    background: #fff;
}
.hp-status-icons i:nth-child(1) { height: 5px; }
.hp-status-icons i:nth-child(2) { height: 8px; }
.hp-status-icons i:nth-child(3) { height: 11px; }
.hp-status-icons b {
    margin-left: 6px;
    width: 22px;
    height: 11px;
    border: 1.5px solid #fff;
    border-radius: 3px;
    box-shadow: inset -6px 0 0 1px #fff;
}
.hp-island {
    position: absolute;
    top: 14px;
    left: 50%;
    width: 74px;
    height: 22px;
    transform: translateX(-50%);
    border-radius: 12px;
    background: #05040a;
}

/* Notification */
.hp-card {
    position: absolute;
    left: 50%;
    top: 170px;
    width: 330px;
    transform: translateX(-50%);
    padding: 44px 24px 22px;
    border-radius: 24px;
    background: #fff;
    text-align: center;
    box-shadow: 0 24px 60px rgba(36, 18, 120, .25), 0 2px 6px rgba(36, 18, 120, .08);
    transform: translateX(-50%) translateZ(70px);
    animation: hp-pop .7s cubic-bezier(.2, .9, .3, 1.3) both .2s;
}
.hp-check {
    position: absolute;
    left: 50%;
    top: -30px;
    width: 64px;
    height: 64px;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    border: 5px solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, #6f52ff, #4b2ad8);
    box-shadow: 0 10px 24px rgba(85, 47, 223, .45);
}
.hp-check svg {
    width: 28px;
    height: 28px;
}
.hp-time {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 13px;
    color: #9a9aa6;
}
.hp-card strong {
    display: block;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -1px;
    color: #1d1a2e;
}
.hp-number {
    display: block;
    margin-top: 8px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--purple, #552fdf);
}
.hp-code {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 12px;
    background: #f3f1ff;
    font-size: 13px;
    color: #5d5a6e;
}
.hp-code b {
    color: #1d1a2e;
    letter-spacing: 1px;
}

/* Icônes flottantes */
.hp-bubble {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 26%, #fff 0%, #fff 18%, #f1edff 42%, #cfc3ff 78%, #9d86ff 100%);
    box-shadow: 0 22px 40px rgba(44, 22, 140, .28), inset -8px -12px 20px rgba(85, 47, 223, .28), inset 6px 8px 14px rgba(255, 255, 255, .9);
    animation: hp-float 6s ease-in-out infinite;
}
.hp-bubble:after {
    content: "";
    position: absolute;
    left: 20%;
    top: 10%;
    width: 34%;
    height: 20%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .95), transparent);
    transform: rotate(-30deg);
}
.hp-bubble img {
    width: 48%;
    height: 48%;
    border-radius: 50%;
    /* Fait disparaître le fond clair carré des icônes exportées. */
    mix-blend-mode: multiply;
}
.hp-bubble.b1 { width: 112px; height: 112px; right: 0; top: 70px; animation-delay: -1s; }
.hp-bubble.b2 { width: 92px; height: 92px; left: 10px; top: 90px; animation-delay: -3s; }
.hp-bubble.b3 { width: 84px; height: 84px; left: 0; top: 330px; animation-delay: -2s; }
.hp-bubble.b4 { width: 96px; height: 96px; right: 14px; top: 360px; animation-delay: -4s; }
.hp-bubble.b5 { width: 58px; height: 58px; left: 92px; top: 450px; animation-delay: -5s; }
.hp-bubble.b6 { width: 62px; height: 62px; right: 150px; top: -14px; animation-delay: -2.5s; }

@keyframes hp-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(4deg); }
}
@keyframes hp-pop {
    from { opacity: 0; transform: translateX(-50%) translateZ(20px) translateY(16px) scale(.94); }
    to { opacity: 1; transform: translateX(-50%) translateZ(70px) translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .hp-bubble, .hp-card, .hp-stage { animation: none; }
}
@media (max-width: 1100px) {
    .hero-phone { transform: scale(.85); transform-origin: center; margin: -40px; }
}
@media (max-width: 760px) {
    .hero-phone { --pw: 190px; --ph: 390px; --pr: 36px; width: 340px; height: 420px; transform: none; margin: 0 auto; }
    .hp-stage { transform: rotateX(8deg) rotateY(-18deg) rotateZ(2deg); animation: none; }
    .hp-screen { border-radius: 28px; }
    .hp-btn-power, .hp-btn-vol1, .hp-btn-vol2 { display: none; }
    .hp-floor { left: 80px; right: 60px; bottom: 0; }
    .hp-card { top: 130px; width: 280px; padding: 38px 16px 18px; }
    .hp-card strong { font-size: 23px; }
    .hp-number { font-size: 16px; }
    .hp-bubble.b1 { width: 80px; height: 80px; top: 40px; }
    .hp-bubble.b2 { width: 66px; height: 66px; top: 60px; left: 0; }
    .hp-bubble.b3 { width: 60px; height: 60px; top: 300px; }
    .hp-bubble.b4 { width: 70px; height: 70px; top: 300px; right: 0; }
    .hp-bubble.b5, .hp-bubble.b6 { display: none; }
}
