/* Modal de choix d'application */
.app-choice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.app-choice-modal.active {
    display: block;
}

.app-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.app-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.app-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.app-modal-close:hover {
    color: #000;
}

.app-modal-content h3 {
    margin: 0 0 25px 0;
    text-align: center;
    color: #2C3E2C;
    font-size: 20px;
    font-weight: 600;
}

.app-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.app-store-btn,
.play-store-btn {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
}

.app-store-btn:hover,
.play-store-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Bouton de téléchargement d'app mobile */
.hero-button-app-download {
    background: #A8C09A !important;
    color: #2C3E2C !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #A8C09A !important;
}

.hero-button-app-download:hover {
    background: #2C3E2C !important;
    color: white !important;
    border-color: #2C3E2C !important;
}

/* Styles pour le bouton dans le menu mobile */
.mobile-cta .hero-button-app-download {
    background: #A8C09A !important;
    color: #2C3E2C !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #A8C09A !important;
    margin: 10px;
}

.mobile-cta .hero-button-app-download:hover {
    background: #2C3E2C !important;
    color: white !important;
    border-color: #2C3E2C !important;
}

/* Affichage uniquement sur mobile pour le bouton dans la hero section */
@media (min-width: 769px) {
    .hero-buttons-mobile .hero-button-app-download {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hero-buttons-mobile {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin-top: 20px;
    }
    
    .hero-button-app-download {
        width: auto;
        min-width: 200px;
        text-align: center;
    }
}