/* ========================================
   Styles pour l'écran mobile
   ======================================== */

/* Écran mobile - Redirection RDV */
.mobile-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0000FF;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.mobile-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/pattern.svg');
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 1;
}

.mobile-screen.visible {
    opacity: 1;
    visibility: visible;
}

.mobile-screen.hidden {
    opacity: 0;
    visibility: hidden;
    display: none;
}

/* Container du contenu mobile */
.mobile-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Header mobile */
.mobile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.mobile-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Contenu mobile */
.mobile-content {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(10px);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.3;
}

.mobile-description {
    font-size: 1.05rem;
    color: #4a5568;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.mobile-description strong {
    color: #0000FF;
    font-weight: 600;
}

/* Container iframe */
.mobile-iframe-container {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: white;
}

.mobile-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Responsive pour petits écrans */
@media (max-width: 768px) {
    .mobile-container {
        padding: 1.5rem 1rem;
    }
    
    .mobile-content {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .mobile-logo {
        max-width: 150px;
    }
    
    .mobile-title {
        font-size: 1.3rem;
    }
    
    .mobile-description {
        font-size: 0.95rem;
    }
    
    .mobile-iframe-container {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .mobile-container {
        padding: 1rem 0.75rem;
    }
    
    .mobile-content {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .mobile-logo {
        max-width: 120px;
        margin-bottom: 1rem;
    }
    
    .mobile-header {
        margin-bottom: 1.5rem;
    }
    
    .mobile-title {
        font-size: 1.1rem;
    }
    
    .mobile-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .mobile-iframe-container {
        height: 450px;
    }
}

/* Hauteur pour très petits écrans */
@media (max-height: 700px) {
    .mobile-iframe-container {
        height: 400px;
    }
}

@media (max-height: 600px) {
    .mobile-iframe-container {
        height: 350px;
    }
    
    .mobile-content {
        padding: 1.5rem 1rem;
    }
}
