/* ==================== PHONE MOCKUP AMÉLIORÉ ==================== */

.phone-mockup {
    position: relative;
    width: 320px;
    height: 650px;
    margin: 0 auto;
    animation: floatPhone 6s ease-in-out infinite;
    /* Ombre ultra réaliste multicouche */
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.3))
            drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2))
            drop-shadow(0 5px 15px rgba(0, 0, 0, 0.15));
}

@keyframes floatPhone {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(1deg);
    }
    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
    75% {
        transform: translateY(-20px) rotate(0.5deg);
    }
}

/* === FRAME AVEC EFFET PREMIUM === */
.phone-frame {
    position: relative;
    width: 100%;
    height: 100%;
    /* Gradient métallique premium */
    background: linear-gradient(145deg, 
        #2d3748 0%,
        #1a202c 25%,
        #0f1419 50%,
        #1a202c 75%,
        #2d3748 100%
    );
    border-radius: 45px;
    padding: 12px;
    /* Ombres ultra réalistes multicouches */
    box-shadow:
        /* Ombre principale profonde */
        0 40px 80px rgba(0, 0, 0, 0.35),
        /* Ombre moyenne */
        0 20px 40px rgba(0, 0, 0, 0.25),
        /* Ombre proche */
        0 10px 20px rgba(0, 0, 0, 0.2),
        /* Ombre très proche pour définition */
        0 2px 8px rgba(0, 0, 0, 0.15),
        /* Highlight subtil en haut */
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        /* Bordure externe douce */
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* === EFFET DE LUMIÈRE RÉALISTE === */
.phone-frame::before {
    content: '';
    position: absolute;
    top: -2%;
    left: -2%;
    width: 104%;
    height: 104%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 30%,
        transparent 70%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 47px;
    pointer-events: none;
    z-index: 10;
}

/* === REFLET DYNAMIQUE === */
.phone-frame::after {
    content: '';
    position: absolute;
    top: 10%;
    left: -20%;
    width: 50%;
    height: 80%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transform: skewX(-20deg);
    animation: phoneShine 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 9;
}

@keyframes phoneShine {
    0%, 100% {
        left: -20%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        left: 120%;
        opacity: 1;
    }
    60%, 100% {
        opacity: 0;
    }
}

/* === SCREEN AVEC EFFET OLED === */
.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 35px;
    overflow: hidden;
    /* Ombre interne pour effet OLED */
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        inset 0 0 2px rgba(255, 255, 255, 0.1);
}

/* === NOTCH RÉALISTE === */
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
    /* Ombre pour profondeur */
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.5),
        inset 0 -1px 3px rgba(255, 255, 255, 0.05);
}

/* Speaker */
.phone-notch::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 5px;
    background: linear-gradient(to bottom, #1a1a1a, #0a0a0a);
    border-radius: 10px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Camera */
.phone-notch::after {
    content: '';
    position: absolute;
    top: 9px;
    right: 22px;
    width: 9px;
    height: 9px;
    background: radial-gradient(circle, #1a3a52 0%, #0a1520 70%, #000 100%);
    border-radius: 50%;
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 3px rgba(59, 130, 246, 0.3);
}

/* === BOUTONS LATÉRAUX DÉTAILLÉS === */
.phone-button-left {
    position: absolute;
    left: -3px;
    top: 120px;
    width: 4px;
    height: 32px;
    background: linear-gradient(to right, #0f172a 0%, #2d3748 50%, #1e293b 100%);
    border-radius: 2px 0 0 2px;
    box-shadow: 
        -1px 0 3px rgba(0, 0, 0, 0.5),
        inset 1px 0 1px rgba(255, 255, 255, 0.1);
}

.phone-button-right-1 {
    position: absolute;
    right: -3px;
    top: 100px;
    width: 4px;
    height: 55px;
    background: linear-gradient(to left, #0f172a 0%, #2d3748 50%, #1e293b 100%);
    border-radius: 0 2px 2px 0;
    box-shadow: 
        1px 0 3px rgba(0, 0, 0, 0.5),
        inset -1px 0 1px rgba(255, 255, 255, 0.1);
}

.phone-button-right-2 {
    position: absolute;
    right: -3px;
    top: 175px;
    width: 4px;
    height: 55px;
    background: linear-gradient(to left, #0f172a 0%, #2d3748 50%, #1e293b 100%);
    border-radius: 0 2px 2px 0;
    box-shadow: 
        1px 0 3px rgba(0, 0, 0, 0.5),
        inset -1px 0 1px rgba(255, 255, 255, 0.1);
}

/* === VIDEO/CONTENT AREA === */
.phone-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 35px;
}

.phone-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Légère amélioration de la netteté */
    filter: contrast(1.05) saturate(1.1);
}

/* === PLACEHOLDER AMÉLIORÉ === */
.phone-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Effet de mouvement de fond */
.phone-placeholder::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: placeholderMove 8s ease-in-out infinite;
}

@keyframes placeholderMove {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-30%, -30%) rotate(180deg); }
}

.phone-placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

.phone-placeholder-text {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.phone-placeholder-subtext {
    font-size: 0.875rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* === EFFET AMBIANT COLORÉ - SUPPRIMÉ POUR UNIFORMITÉ === */
/* .phone-mockup::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    animation: ambientGlow 4s ease-in-out infinite alternate;
    pointer-events: none;
} */

@keyframes ambientGlow {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.95);
    }
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .phone-mockup {
        width: 300px;
        height: 610px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .phone-mockup {
        width: 280px;
        height: 570px;
        filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.3))
                drop-shadow(0 12px 25px rgba(0, 0, 0, 0.2))
                drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    }

    .phone-frame {
        box-shadow:
            0 35px 70px rgba(0, 0, 0, 0.35),
            0 18px 35px rgba(0, 0, 0, 0.25),
            0 8px 18px rgba(0, 0, 0, 0.2),
            0 2px 6px rgba(0, 0, 0, 0.15),
            inset 0 1px 2px rgba(255, 255, 255, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 480px) {
    .phone-mockup {
        width: 240px;
        height: 490px;
    }

    .phone-frame {
        border-radius: 35px;
        padding: 10px;
    }

    .phone-screen {
        border-radius: 28px;
    }
}

@media (max-width: 375px) {
    .phone-mockup {
        width: 200px;
        height: 410px;
    }

    .phone-frame {
        border-radius: 30px;
        padding: 8px;
    }

    .phone-screen {
        border-radius: 24px;
    }

    .phone-notch {
        width: 120px;
        height: 25px;
    }
}